import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user: {
      id:'',
      isLogin:false
    }
  },
  mutations: {
    // 用户状态行为
    set_userid (state,user) {
      state.user = user;
    },
    del_user (state,user) {
      state.user=user;
    }
  }
})
